
def strip(line):
    values = line.split(',')
    return '(%s,"%s",%s)' % (values[0], values[1], values[2].replace('\n', ''))



with open('green.csv','rU') as fin:
    with open('model.txt', 'w') as fout:
        #fout.write(',\n'.join(fin))
        fout.write('[')
        fout.write('\n,'.join(map(strip, fin)))
        fout.write(']')




